FROM openjdk:17.0.2-jdk

LABEL authors="Sean_Liao"

# 加包
ADD ./my-nav-0.1-spring-boot.jar app.jar
EXPOSE 10001

# 时区
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo "Asia/Shanghai" > /etc/timezone

# 运行命令
ENTRYPOINT ["java", "-jar", "app.jar"]